import globaleContext from "../utils/globaleContext"
import { useContext } from "react"

//7.1  定义子组件Tow
function Tow() {
    let value = useContext(globaleContext)
    return (
        <div>
            <h1>tow组件----{value.name}-----{value.age}</h1>
        </div>
    )
}
 

export default Tow